package com.mall.malladminbackend.enums;

import lombok.Builder;
import lombok.Data;

import java.util.List;
import java.util.Set;

// jwt的验证信息
@Data
@Builder
public class JwtValidateInfo {

    private String subject;
    private List<String> authorizes;
    private JwtStatus status;

    public enum JwtStatus {

        correct("正确"), expired("过期"), temper("篡改");

        private final String desc;

        JwtStatus(String desc) {
            this.desc = desc;
        }

        public String getDesc() {
            return desc;
        }
    }
}

